package com.mspbots.core.script.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.JsonNode;
import com.mspbots.core.enums.ScriptLanguageEnum;
import com.mspbots.core.wise.model.TenantEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class TenantScript extends TenantEntity {

    private String name;
    private String context;
    private String scope;
    private String triggerEvent;
    private LocalDateTime createTime;
    private Boolean enable;
    private Long systemScriptId;
    private ScriptLanguageEnum language;
    private String version;
    private String paramsJson;
    private JsonNode paramsValue;
    private String description;
    private Boolean disable;

    private transient String sysParamsJson;
    private transient JsonNode sysParamsValue;
    private transient String sysVersion;
    @TableField(exist = false)
    private Boolean sendEscalation;

    @TableField(exist = false)
    private String sendEscalationStr;


    @TableField(exist = false)
    private Boolean send;

    @TableField(exist = false)
    private String sendStr;

    @TableField(exist = false)
    private String sort;


}
